Skip to content

Comments

Added task test1#11

Open
AntonChern wants to merge 3 commits intomasterfrom
test1
Open

Added task test1#11
AntonChern wants to merge 3 commits intomasterfrom
test1

Conversation

@AntonChern
Copy link
Owner

No description provided.

#include <iostream>
using namespace std;

// difficulty log(n)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а кто тут n?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ну и в целом неправда

}

cout << "Enter amount of Petya's reports" << endl;
int lengthP = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

стоило бы вынести в функцию, два раза один и тот же код повторяется


int countSpases(char *str, int length);
void insertSpase(char *rStr, int rLength, int number);
void displayRStr(char *rStr, int rLength);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не надо так сокращать

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants